package Page.DownloadPage;

import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.scene.control.Label;

import java.io.IOException;
import java.util.Objects;

public class DownloadPage {
    public static Scene getScene(){
        Parent root = null;
        try{
            root = FXMLLoader.load(Objects.requireNonNull(DownloadPage.class.getResource("DownloadPage.fxml")));

        }catch (IOException e){
            System.err.println("Error loading DownloadPage.fxml");
        }

        if(root != null)
        {
            return new Scene(root);
        }else{
            return new Scene(new Label("出现未知错误"));
        }
    }
}
